package com.canaan.business.domain.inOutStock;

import com.canaan.common.annotation.Excel;
import com.canaan.common.annotation.TableName;
import com.canaan.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 库存占用明细对象 wms_stock_occupy_detail
 *
 * @author ruoyi
 * @date 2023-02-11
 */
@ApiModel(description = "wms_stock_occupy_detail")
@TableName("wms_stock_occupy_detail")
@Data
public class StockOccupyDetail extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** ID */
    @ApiModelProperty("${comment}")
    private Long id;

    /** 编号 */
    @Excel(name = "编号")
    @ApiModelProperty("编号")
    private String no;

    /** 占用编号 */
    @Excel(name = "占用编号")
    @ApiModelProperty("占用编号")
    private String stockOccupyNo;

    /** 仓库编号 */
    @Excel(name = "仓库编号")
    @ApiModelProperty("仓库编号")
    private String storehouseNo;

    /** 库位编号 */
    @Excel(name = "库位编号")
    @ApiModelProperty("库位编号")
    private String storehouseLocationNo;

    /** 条码号 */
    @Excel(name = "条码号")
    @ApiModelProperty("条码号")
    private String barcode;

    /** 物料编码 */
    @Excel(name = "物料编码")
    @ApiModelProperty("物料编码")
    private String productNo;

    /** 占用数量 */
    @Excel(name = "占用数量")
    @ApiModelProperty("占用数量")
    private Long occupyQty;

    /** 工单编号 */
    @Excel(name = "工单编号")
    @ApiModelProperty("工单编号")
    private String workNo;

    /** 是否删除：1是 0否 */
    @ApiModelProperty("是否删除")
    private String delFlag;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("no", getNo())
            .append("stockOccupyNo", getStockOccupyNo())
            .append("storehouseLocationNo", getStorehouseLocationNo())
            .append("barcode", getBarcode())
            .append("productNo", getProductNo())
            .append("occupyQty", getOccupyQty())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("createTime", getCreateTime())
            .toString();
    }
}
